# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-html-template-expr
pkgver=0.07
pkgrel=14
pkgdesc="Perl/CPAN Module HTML::Template::Expr"
arch=("any")
url="https://search.cpan.org/dist/HTML-Template-Expr"
license=("GPL" "PerlArtistic")
makedepends=("perl-html-template" "perl-parse-recdescent")
depends=("perl-html-template" "perl-parse-recdescent")
source=("https://www.cpan.org/authors/id/S/SA/SAMTREGAR/HTML-Template-Expr-0.07.tar.gz")
sha256sums=('5c32272e5e96ea9b63f304fab9ce711f0a9027208d1ab2138a473b4d9f09b225')

build() {
  cd "$srcdir"/HTML-Template-Expr-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/HTML-Template-Expr-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
